﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace tv_control_person
{
    class Person
    {
        private RemoteControl _rc;

        public Person(RemoteControl rc)
        {
            _rc = rc;
        }

        public void PressTheButton()
        {
            if (_rc == null)
                throw new InvalidOperationException("Can't press the button because there is no rempte cnotrol");

            _rc.Power();
            _rc.ChangeChannel(_rc.Channel1 = "Discovery");
            //c.ChangeChannel(c.Channel2 = "NatGeo");
            _rc.MakeLouder(60);
            _rc.MakeQuieter(20);
            _rc.MakeLouder(30);
            
            
        }
    }
}
